/*
 * @Author: Eli.Chen
 * @Date: 2025-02-25 16:51:54
 * @LastEditors: Eli.Chen
 * @LastEditTime: 2025-03-05 16:40:14
 * @Description:
 */
export const COLOR_THEME = {
    PRIMARY: '#3C6256',
    SECONDARY: '#52c41a',
    TERTIARY: '#616161',
    QUATERNARY: '#FFFFFF',
    SUCCESS: '#52c41a',
    ERROR: '#ff4d4f',
    WARNING: '#faad14',
    INFO: '#1890ff',
    TEXT_BASE: 'rgba(0, 0, 0, 0.88)',
    TEXT_SECONDARY: 'rgb(255, 255, 255)',
    TEXT_TERTIARY: '#828282',
    BG_BASE: '#f5f5f5',
    BG_SECONDARY: '#FAF6ED',
    BG_TERTIARY: '#4C695F',
};

// 修改为返回主题配置对象（v5 新规范）
const configureTheme = () => ({
    token: {
        colorPrimary: COLOR_THEME.PRIMARY,
        colorInfo: COLOR_THEME.PRIMARY,
        borderRadius: 4,
        colorBgContainer: '#ffffff',
        colorSuccess: COLOR_THEME.SUCCESS,
        colorError: COLOR_THEME.ERROR,
        colorWarning: COLOR_THEME.WARNING,
        colorText: COLOR_THEME.TEXT_BASE,
        colorBgBase: COLOR_THEME.BG_BASE,
    },
    components: {
        Button: {
            colorPrimary: COLOR_THEME.PRIMARY,
            algorithm: true, // 启用组件样式算法
        },
        Input: {
            colorBorder: COLOR_THEME.PRIMARY,
            hoverBorderColor: COLOR_THEME.SECONDARY,
        },
        Carousel: {
            arrowSize: 32,
            dotActiveWidth: 20, // 激活态指示器宽度
            dotHeight: 4, // 指示器高度
            dotWidth: 20,
        },
    },
});

export default configureTheme;
